package com.lianzhihui.romeex.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lianzhihui.romeex.R;

import java.util.List;

/**
  * ProjectName:    NBN
  * ClassName:      AssetsAdapter
  * Description:    键盘列表适配器
  * Author:         echo
  * CreateDate:     2019/10/28 17:07
  * UpdateUser:     更新者
  * UpdateDate:     2019/10/28 17:07
  * UpdateRemark:   更新说明
  * Version:        1.0
 */
public class KeyboardAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public KeyboardAdapter(@Nullable List<String> data) {
        super(R.layout.item_safety_key,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_value,item);
        if (item.equals("DEL")){
            helper.setVisible(R.id.iv_value,true);
            helper.setText(R.id.iv_value,"删除");
        }
    }
}
